Skip to content

feat: Function Pointers #1492

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 14 commits into
base: master
Choose a base branch
from
Draft

feat: Function Pointers #1492

wants to merge 14 commits into from

Conversation

volsa
Copy link
Member

@volsa volsa commented Jul 9, 2025

No description provided.

@volsa volsa force-pushed the vosa/fnptr2 branch 3 times, most recently from 8d24e01 to 81c0500 Compare July 23, 2025 15:57
volsa added 3 commits August 3, 2025 13:57
Previously when dealing with function pointer calls such as `fnPtr^()`
the resolver would only annotate the operator and any arguments. Some
codegen parts require an annotation on the whole call statement however
(which makes sense), as such this commit fixes the described issue.
Visuallized, assuming `fnPtr` points to a function returning a DINT:
```
fnPtr^();
^^^^^^^^ -> StatementAnnotation::Value { resulting_type: "DINT" }
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant